package top.itpath.common.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;
import top.itpath.admin.entity.SysUser;

/**
 * 更新用户角色事件
 *
 * @author zhaomengru
 * @time 2023/10/14 - 11:53
 */
@Getter
public class UpdateUserRoleEvent extends ApplicationEvent {

    /**
     * 发生事件的用户
     */
    private final SysUser sysUser;

    public UpdateUserRoleEvent(Object source, SysUser sysUser) {
        super(source);
        this.sysUser = sysUser;
    }
}
